package 创建型模式.单例模式.饿汉式;

/**
 * 饿汉式，直接创建对象
 */
public class User 
{
	private static User user = new User();

	public static User getUser() {
		return user;
	}
	
}
